import React from 'react'
import { InbizImageSearchUpload } from 'inbiz-image-search-upload';
import Cookies from 'js-cookie';
export default function App(props) {
  const { $uploadData, $visible, visible } = props
  return (
    <InbizImageSearchUpload
      token={Cookies.get('token') || ''}
      uploadUrl="/ImageSearch/Upload"
      visible={visible}
      onOk={(data: any) => {
        $uploadData({ ...data });
      }}
      onCancel={() => {
        $visible(false);
      }}
      close={true}
    />
  )
}
